import { Column, Entity, Index } from 'typeorm';
import { CommonEntity, CommonStatus } from '~/common/entity/common.entity';

@Entity('ah_message_template')
@Index(['id'])
export class MessageTemplateEntity extends CommonEntity {
  @Column({ type: 'tinyint', width: 1, comment: '状态', default: CommonStatus.YES })
  status: CommonStatus;

  @Column({ type: 'varchar', length: 500, comment: '模版', name: 'template' })
  template: string;
}
